cd $1
pwd
mkdir $2
mv $3 $2
cd $2
pwd
rpm2cpio *src.rpm|cpio -i
echo "extract $3"
rm $3